package com.goods.dao;

import com.goods.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    @Select("select * from manager where username = #{username}")
    public User login(String username);
    @Insert("insert into manager (username,password) values ( #{username}, #{password})")
    public int regist(User user);
}
